#include "widget.h"
#include "ui_widget.h"
#include<QDebug>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
    qDebug()<<"按钮";
}

void Widget::on_pushButton_enable_clicked()
{
    bool flag=this->ui->pushButton->isEnabled();
    this->ui->pushButton->setEnabled(!flag);

}
